/**
 * 6.3.3 【案例】定时跳转
 * @type {number}
 */
var secs=3;
document.body.innerHTML=secs+"秒后转到"+"<a href='https://www.moe123.net/'>萌导航</a>";
setInterval(function () {
    if (secs==0){
        window.location.href="https://www.moe123.net/";
    }else {
        document.body.innerHTML=--secs+"秒后转到"+"<a href='https://www.moe123.net/'>萌导航</a>";
    }
},1000);